class UserResponse {
  int? userId;
  String? account;
  String? name;
  String? avatar;
  String? deptName;
  int? orgId;
  String? code;
  String? phone;
  String? orgCode;
  String? orgName;
  dynamic orgLogo;
  String? roles;
  String? authCodes;
  dynamic positionName;
  dynamic dutyName;
  dynamic servingAge;
  dynamic introduction;

  UserResponse(
      {
        this.userId,
        this.account,
      this.name,
      this.avatar,
        this.deptName,
        this.orgId,
        this.code,
        this.phone,
      this.orgCode,
      this.orgName,
      this.orgLogo,
      this.roles,
      this.authCodes,
        this.positionName,
        this.dutyName,
        this.servingAge,
      this.introduction});

  UserResponse.fromJson(Map<String, dynamic> json) {
    userId = json['userId'];
    account = json['account'];
    name = json['name'];
    avatar = json['avatar'];
    orgId = json['orgId'];
    deptName = json['deptName'];
    orgCode = json['orgCode'];
    orgName = json['orgName'];
    orgLogo = json['orgLogo'];
    code = json['code'];
    phone = json['phone'];
    roles = json['roles'];
    authCodes = json['authCodes'];
    positionName = json['positionName'];
    dutyName = json['dutyName'];
    servingAge = json['servingAge'];
    introduction = json['introduction'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['userId'] = userId;
    data['account'] = account;
    data['name'] = name;
    data['avatar'] = avatar;
    data['orgId'] = orgId;
    data['deptName'] = deptName;
    data['orgCode'] = orgCode;
    data['orgName'] = orgName;
    data['orgLogo'] = orgLogo;
    data['code'] = code;
    data['phone'] = phone;
    data['roles'] = roles;
    data['authCodes'] = authCodes;
    data['positionName'] = positionName;
    data['dutyName'] = dutyName;
    data['servingAge'] = servingAge;
    data['introduction'] = introduction;

    return data;
  }
}
